<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>工作动态</title>
    <link rel="stylesheet" href="src/images/reset.css">
    <link rel="stylesheet" href="src/css/idangerous.swiper2.7.6.css">
    <link rel="stylesheet" href="src/css/gzdt.css">
    <link rel="stylesheet" href="src/css/animate.min.css">
</head>
<body>
    <div class="page-home-net">
        <!--轮播图-->
        <div class="swiper-container banner-wrap">
          <div class="swiper-wrapper">
            <div class="swiper-slide slide1">
                <img src="src/images/banner.png" alt="">
            </div>
            <div class="swiper-slide slide2">
                <img src="src/images/banner.png" alt="">
            </div>
          </div>
          <div class="swiper-pagination"></div>
        </div>

        <div class="position_wrap">
            <div class="w1200">
                <a href="#">天津港口统一收费服务平台</a>
                >
                <span>工作动态</span>
            </div>
        </div>

        <div class="work_list">
            <div class="w1200">
                <div class="item_wrap">
                    <h2 class="h2tit">
                        <div class="news_type">
                            行业动态
                        </div>
                        <a href="#" class="more">更多</a>
                    </h2>
                    <div class="list">
                        <ul>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="item_wrap">
                    <h2 class="h2tit">
                        <div class="news_type">
                            公告公示
                        </div>
                        <a href="#" class="more">更多</a>
                    </h2>
                    <div class="list">
                        <ul>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="item_wrap">
                    <h2 class="h2tit">
                        <div class="news_type">
                            政策法规
                        </div>
                        <a href="#" class="more">更多</a>
                    </h2>
                    <div class="list">
                        <ul>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="item_wrap">
                    <h2 class="h2tit">
                        <div class="news_type">
                            管理办法
                        </div>
                        <a href="#" class="more">更多</a>
                    </h2>
                    <div class="list">
                        <ul>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                            <li>
                                <div class="title_time">
                                    <div class="title">
                                        <a href="#">
                                            国家税务总局北京市税务局关于原北京市国家税务局2018年度新录用公务员报到的通知 
                                        </a>
                                    </div>
                                    <div class="time">
                                        2018-09-08
                                    </div>
                                </div>
                                <div class="author">
                                    责任编辑：XXX
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <script src="src/js/jquery-1.10.1.min.js"></script>
    <script src="src/js/idangerous.swiper.min.js"></script>
    <script src="src/js/swiper.animate1.0.2.min.js"></script>
    <script language="javascript">
        // banner
        var mySwiper = new Swiper ('.banner-wrap', {
        pagination: '.swiper-pagination',
        paginationClickable :true,
        autoplay : 3000,
        loop: true,
        speed:300,
        autoplayDisableOnInteraction : false,
        onProgressChange: function(swiper){
        for (var i = 0; i < swiper.slides.length; i++){
        var slide = swiper.slides[i];
        var progress = slide.progress;
        var translate = progress*swiper.width;  
        var opacity = 1 - Math.min(Math.abs(progress),1);
        slide.style.opacity = opacity;
        swiper.setTransform(slide,'translate3d('+translate+'px,0,0)');
        }
        },
        onTouchStart:function(swiper){
        for (var i = 0; i < swiper.slides.length; i++){
        swiper.setTransition(swiper.slides[i], 0);
        }
        },
        onSetWrapperTransition: function(swiper, speed) {
        for (var i = 0; i < swiper.slides.length; i++){
        swiper.setTransition(swiper.slides[i], speed);
        }
        }
        });  

        // 柱状图切换
        var viewSwiper = new Swiper('.view .swiper-container', {
            onSlideChangeStart: function() {
                updateNavPosition()
            }
        })

        $('.preview .arrow-left').on('click', function(e) {
            e.preventDefault()
            if (viewSwiper.activeIndex == 0) {
                viewSwiper.swipeTo(viewSwiper.slides.length - 1, 1000);
                return
            }
            viewSwiper.swipePrev()
        })

        $('.preview .arrow-right').on('click', function(e) {
            e.preventDefault()
            if (viewSwiper.activeIndex == viewSwiper.slides.length - 1) {
                viewSwiper.swipeTo(0, 1000);
                return
            }
            viewSwiper.swipeNext()
        })

        var previewSwiper = new Swiper('.preview .swiper-container', {
            visibilityFullFit: true,
            slidesPerView: 'auto',
            onlyExternal: true,
            onSlideClick: function() {
                viewSwiper.swipeTo(previewSwiper.clickedSlideIndex)
            }
        })

        function updateNavPosition() {
            $('.preview .active-nav').removeClass('active-nav')
            var activeNav = $('.preview .swiper-slide').eq(viewSwiper.activeIndex).addClass('active-nav')
            if (!activeNav.hasClass('swiper-slide-visible')) {
                if (activeNav.index() > previewSwiper.activeIndex) {
                    var thumbsPerNav = Math.floor(previewSwiper.width / activeNav.width()) - 1
                    previewSwiper.swipeTo(activeNav.index() - thumbsPerNav)
                } else {
                    previewSwiper.swipeTo(activeNav.index())
                }
            }
        }
    </script>
</body>
</html>